﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NUnit.Framework;
using DomainDriver.DomainModeling.GenericUnitTesting;
using AutomotivePricingModel.DriveTrainTypes;

namespace AutomotivePricingModel.UnitTests.DomainObjects
{
    [TestFixture]
    public class DriveTrainTypeTests : DomainObjectTestFixture<DriveTrainTypeEnum, DriveTrainType>
    {
        private DriveTrainTypeEnum m_CurrentEnumValue = DriveTrainTypeEnum.FrontWheelDrive;

        protected override DriveTrainType CreateUniqueDomainObject()
        {
            return new DriveTrainType(m_CurrentEnumValue++);
        }

        protected override ICollection<DomainObjectModifier<DriveTrainTypeEnum, DriveTrainType>> GetDomainObjectModifiers()
        {
            List<DomainObjectModifier<DriveTrainTypeEnum, DriveTrainType>> modifiers = new List<DomainObjectModifier<DriveTrainTypeEnum, DriveTrainType>>();
            modifiers.Add((DriveTrainType domainObject) => domainObject.DisplayName += m_StringUpdateValue);
            modifiers.Add((DriveTrainType domainObject) => domainObject.DisplayName = null);
            return modifiers;
        }

        [Test]
        public override void VerifyDomainObjectFunctionality()
        {
            base.VerifyDomainObjectFunctionality();
        }
    }
}